#include "DisplayWidget.h"
#include "ui_DisplayWidget.h"

DisplayWidget::DisplayWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DisplayWidget)
{
    ui->setupUi(this);

    ui->showWidget->setHeaderLabels(QStringList() << "Topic" << "Time" << "Context");
    ui->showWidget->header()->setSectionResizeMode(QHeaderView::Stretch);
    ui->showWidget->header()->setSectionResizeMode(0, QHeaderView::Fixed);
    ui->showWidget->header()->setSectionResizeMode(1, QHeaderView::Fixed);
    ui->showWidget->header()->setSectionsMovable(false);
}

DisplayWidget::~DisplayWidget()
{
    delete ui;
}
